package com.example.schooldaka;

import com.example.schooldaka.service.ApiService;
import com.example.schooldaka.util.LoginUtil;
import com.example.schooldaka.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
public class SchoolDaKaApplication {

    @Autowired
    private ApiService apiService;

    public static void main(String[] args) throws Exception {
        System.out.println("开始执行任务");
        Result data = LoginUtil.getLoginSession("学号", "密码", "打卡点");
        System.out.println("data ->" + data);
        SpringApplication.run(SchoolDaKaApplication.class, args);


    }

}
